/**
 * English Language Pack
 * xxpay Merchant System
 */
window.I18N_MESSAGES_ENUS = {
    // System Name
    'system.name': 'Merchant System',
    'system.title': 'xxpay Payment Merchant System',
    'system.welcome': 'Welcome to Merchant System',
    'system.copyright': '© 2024 xxpay Payment Platform',

    // Navigation Menu
    'menu.dashboard': 'Dashboard',
    'menu.order': 'Order Management',
    'menu.finance': 'Finance Management',
    'menu.channel': 'Payment Channels',
    'menu.app': 'App Management',
    'menu.account': 'Account Management',
    'menu.report': 'Reports',
    'menu.setting': 'Settings',
    'menu.help': 'Help Center',

    // Order Management
    'order.list': 'Order List',
    'order.detail': 'Order Details',
    'order.search': 'Order Search',
    'order.refund': 'Order Refund',
    'order.status': 'Order Status',
    'order.amount': 'Order Amount',
    'order.time': 'Order Time',
    'order.channel': 'Payment Channel',

    // Finance Management
    'finance.balance': 'Account Balance',
    'finance.withdraw': 'Withdrawal Application',
    'finance.bill': 'Bill Details',
    'finance.settlement': 'Settlement Records',
    'finance.freeze': 'Frozen Amount',
    'finance.available': 'Available Balance',

    // Payment Channels
    'channel.list': 'Channel List',
    'channel.config': 'Channel Configuration',
    'channel.rate': 'Rate Settings',
    'channel.status': 'Channel Status',
    'channel.test': 'Channel Test',

    // App Management
    'app.list': 'App List',
    'app.add': 'Add App',
    'app.edit': 'Edit App',
    'app.key': 'App Secret',
    'app.config': 'App Configuration',

    // Account Management
    'account.info': 'Account Information',
    'account.security': 'Security Settings',
    'account.password': 'Change Password',
    'account.api': 'API Settings',
    'account.notification': 'Notification Settings',

    // Reports
    'report.overview': 'Data Overview',
    'report.transaction': 'Transaction Statistics',
    'report.channel': 'Channel Statistics',
    'report.finance': 'Finance Statistics',
    'report.export': 'Data Export',

    // Form Fields
    'field.id': 'ID',
    'field.name': 'Name',
    'field.code': 'Code',
    'field.type': 'Type',
    'field.status': 'Status',
    'field.remark': 'Remark',
    'field.createTime': 'Create Time',
    'field.updateTime': 'Update Time',

    // Order Fields
    'field.orderId': 'Order ID',
    'field.mchOrderNo': 'Merchant Order No',
    'field.amount': 'Amount',
    'field.currency': 'Currency',
    'field.subject': 'Subject',
    'field.body': 'Description',
    'field.channelId': 'Channel ID',
    'field.channelName': 'Channel Name',
    'field.payTime': 'Pay Time',
    'field.notifyUrl': 'Notify URL',
    'field.returnUrl': 'Return URL',

    // App Fields
    'field.appId': 'App ID',
    'field.appName': 'App Name',
    'field.appSecret': 'App Secret',
    'field.appType': 'App Type',

    // Status Values
    'status.enabled': 'Enabled',
    'status.disabled': 'Disabled',
    'status.pending': 'Pending',
    'status.processing': 'Processing',
    'status.success': 'Success',
    'status.failed': 'Failed',
    'status.cancelled': 'Cancelled',

    // Order Status
    'order.status.init': 'Initialized',
    'order.status.paying': 'Paying',
    'order.status.success': 'Payment Success',
    'order.status.failed': 'Payment Failed',
    'order.status.closed': 'Closed',
    'order.status.refund': 'Refunded',

    // Buttons
    'btn.add': 'Add',
    'btn.edit': 'Edit',
    'btn.delete': 'Delete',
    'btn.save': 'Save',
    'btn.cancel': 'Cancel',
    'btn.confirm': 'Confirm',
    'btn.submit': 'Submit',
    'btn.reset': 'Reset',
    'btn.search': 'Search',
    'btn.export': 'Export',
    'btn.refresh': 'Refresh',
    'btn.back': 'Back',
    'btn.detail': 'Details',
    'btn.config': 'Config',
    'btn.test': 'Test',
    'btn.refund': 'Refund',

    // Operation Tips
    'tip.select': 'Please select data to operate',
    'tip.confirm.delete': 'Are you sure to delete selected data?',
    'tip.confirm.refund': 'Are you sure to refund?',
    'tip.no.data': 'No Data Available',
    'tip.loading': 'Loading...',
    'tip.save.success': 'Save Successfully',
    'tip.save.failed': 'Save Failed',
    'tip.delete.success': 'Delete Successfully',
    'tip.delete.failed': 'Delete Failed',
    'tip.refund.success': 'Refund Successfully',
    'tip.refund.failed': 'Refund Failed',

    // Form Validation
    'validate.required': 'This field is required',
    'validate.email': 'Please enter a valid email address',
    'validate.phone': 'Please enter a valid phone number',
    'validate.number': 'Please enter a number',
    'validate.positive': 'Please enter a positive number',
    'validate.amount': 'Please enter a valid amount',
    'validate.url': 'Please enter a valid URL',

    // Pagination
    'page.total': 'Total {total} records',
    'page.current': 'Page {current}',
    'page.size': '{size} per page',
    'page.goto': 'Go to',
    'page.prev': 'Previous',
    'page.next': 'Next',

    // Time
    'time.today': 'Today',
    'time.yesterday': 'Yesterday',
    'time.week': 'This Week',
    'time.month': 'This Month',
    'time.year': 'This Year',
    'time.custom': 'Custom',
    'time.start': 'Start Time',
    'time.end': 'End Time',

    // User Related
    'user.login': 'Login',
    'user.logout': 'Logout',
    'user.profile': 'Profile',
    'user.password': 'Change Password',
    'user.username': 'Username',
    'user.password.old': 'Old Password',
    'user.password.new': 'New Password',
    'user.password.confirm': 'Confirm Password',

    // Payment Related
    'pay.create': 'Create Payment',
    'pay.success': 'Payment Success',
    'pay.failed': 'Payment Failed',
    'pay.pending': 'Payment Pending',
    'pay.amount': 'Payment Amount',
    'pay.method': 'Payment Method',
    'pay.channel': 'Payment Channel',

    // Language Switch
    'lang.chinese': '中文',
    'lang.english': 'English',
    'lang.switch': 'Switch Language',
    'lang.switch.success': 'Language switched successfully',
    'lang.switch.failed': 'Language switch failed',

    // Error Messages
    'error.network': 'Network connection failed',
    'error.timeout': 'Request timeout',
    'error.server': 'Server error',
    'error.permission': 'Permission denied',
    'error.not.found': 'Page not found',
    'error.unknown': 'Unknown error',

    // Success Messages
    'success.operation': 'Operation successful',
    'success.save': 'Save successful',
    'success.delete': 'Delete successful',
    'success.update': 'Update successful',
    'success.create': 'Create successful',

    // Merchant Specific
    'merchant.balance': 'Merchant Balance',
    'merchant.rate': 'Rate',
    'merchant.settlement': 'Settlement Period',
    'merchant.api.doc': 'API Documentation',
    'merchant.demo': 'Payment Demo',
    'merchant.qrcode': 'QR Code',

    // Withdrawal Related
    'withdraw.apply': 'Apply Withdrawal',
    'withdraw.amount': 'Withdrawal Amount',
    'withdraw.fee': 'Fee',
    'withdraw.account': 'Withdrawal Account',
    'withdraw.status': 'Withdrawal Status',
    'withdraw.time': 'Withdrawal Time'
};

// Set messages to I18n
if (window.I18n) {
    if (window.I18n.getLocale() === 'en_US') {
        window.I18n.messages = window.I18N_MESSAGES_ENUS;
    }
}
